package net.oxygen.upload.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 功能：分片上传创建请求
 * </p>
 *
 * @author 陈伟伟
 * @since 2023/12/18 16:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MultipartUploadCreateRequest {

    @NotBlank(message = "文件名称不能为空")
    private String fileName;

    @NotNull(message = "分片数量不能为空")
    private Integer chunks;

    @NotBlank(message = "文件类型不能为空")
    private String contentType;
}
